package com.ficus.road.maintain.core.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;

import java.util.Date;
import java.util.List;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class InspectPicture {
    @Id
    private String id;

    // 车辆Id
    private String carId;

    // 图片url
    private String url;

    // 结束时间
    private Long timeStamp;

    // 是否有病害 0 未标注， 1 标注有病害 2 标注无病害
    private Integer flag;

    // 创建时间
    private Date creationTime;

    //坐标位置
    private GpsLocation gpsLocation;

    // gps坐标用于查询
    private List<Double> location;

    private List<Lesion> lesions;


}
